﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using KeRui.Common;
using System.Collections.Generic;

public partial class Manage_Database_DelLog : System.Web.UI.Page
{
    public List<KeRui.Model.AdminLog> list;

    protected void Page_Load(object sender, EventArgs e)
    {
        ManageHelper.CheckAdminLogin();
        ManageHelper.CheckAdminPower("system_databasedellog");
        if (ManageHelper.PageAct() == "clear")
        {
            ManageHelper.CheckAdminPower("system_databasedellog");
            KeRui.BLL.Common db = new KeRui.BLL.Common();
            db.DatabaseLogDel();

            ManageHelper.AddLog("system_databasedellog", "清除数据库日志");
            Response.Redirect("dellog.aspx?sucmsg=数据库日志清除成功。");
        }

        KeRui.BLL.AdminLog bll = new KeRui.BLL.AdminLog();
        list = bll.GetList(-1, -1, "system_databasedellog", 0, -1, "", "");
    }
}
